home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Include / FWIntere.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.0 KB  |  75 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWIntere.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    (c) 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWINTERE_H
  11. #define FWINTERE_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #if FW_LIB_EXPORT_PRAGMAS
  18. #pragma lib_export on
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward declarations
  23. //========================================================================================
  24.  
  25. class FW_CLASS_ATTR FW_MNotifier;
  26.  
  27. //========================================================================================
  28. // CLASS FW_CInterest
  29. //========================================================================================
  30.  
  31. class FW_CLASS_ATTR FW_CInterest
  32. {
  33. public:
  34.                         FW_CInterest();
  35.                         FW_CInterest(FW_MNotifier* notifier, const FW_TypeToken& name);
  36.                         FW_CInterest(const FW_CInterest& other);
  37.     virtual                ~FW_CInterest();
  38.     
  39.     FW_CInterest&        operator=(const FW_CInterest& other);
  40.     FW_Boolean            operator==(const FW_CInterest& other) const;
  41.     
  42.     virtual FW_CInterest*        Copy() const;
  43.     
  44.     FW_TypeToken        GetName() const;
  45.     FW_MNotifier*        GetNotifier() const;
  46.     
  47. private:
  48.     FW_TypeToken        fName;
  49.     FW_MNotifier*        fNotifier;
  50. };
  51.  
  52. //----------------------------------------------------------------------------------------
  53. // FW_CInterest::GetName
  54. //----------------------------------------------------------------------------------------
  55.  
  56. inline FW_TypeToken FW_CInterest::GetName() const
  57. {
  58.     return fName;
  59. }
  60.  
  61. //----------------------------------------------------------------------------------------
  62. // FW_CInterest::GetNotifier
  63. //----------------------------------------------------------------------------------------
  64.  
  65. inline FW_MNotifier* FW_CInterest::GetNotifier() const
  66. {
  67.     return fNotifier;
  68. }
  69.  
  70. #if FW_LIB_EXPORT_PRAGMAS
  71. #pragma lib_export off
  72. #endif
  73.  
  74. #endif
  75.